<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>商丘旅游网</title>
    <!-- Bootstrap -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script th:src="@{/js/jquery-3.3.1.js}"></script>
    <!--统一资源搜索框-->
    <link rel="stylesheet" th:href="@{/css/style.css}">

    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script th:src="@{/js/bootstrap.js}"></script>
    <script th:src="@{/js/pgwslider.min.js}"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=BG7RU63iyGyRj3ttMtsuGeLnND5cY9yi">
        //v2.0版本的引用方式：src="http://api.map.baidu.com/api?v=2.0&ak=您的密钥"
    </script>

    <script type="text/javascript">
        $(document).ready(function(){
            $(document).ready(function() {
                $('.pgwSlider').pgwSlider();
            });
        });
    </script>
    <link th:href="@{/css/pgwslider.min.css}" rel="stylesheet">
    <link th:href="@{/css/index.css}" rel="stylesheet">
    <!-- 浏览器图标 -->
    <link rel="icon" th:href="@{/img/icon/favicon.ico}">
    <script>
        $(function () {//获取表单并跳转
            $("#btn").click(function () {
                search()
            });
        });
        function search(){
            var key=$("#ipt").val();
            if (key==""){
                key=$("#ipt2").val();
                if (key==""){
                    alert("请输入关键字");
                    return;
                }
            }
            var url="/searchDetail/"+key;
            location.href=url;
        }
    </script>

</head>
<body>
<!--导航栏nav-->
<nav class="navbar navbar-default navbar-fixed-top navbar-transparent" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Passer</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/">首页 <span class="sr-only">(current)</span></a></li>
                <li><a href="/jingdian">推荐景点</a></li>
                <li><a href="/meishi">美食特产</a></li>
                <li><a href="/youji">游记攻略</a></li>
                <li><a href="#wenhua">商丘文化</a></li>
                <li><a href="#shipin">精彩视频</a></li>
                <li><a href="/map">出行地图</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">全景地图 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/map/to3D/商丘古城">商丘古城</a></li>
                        <li><a href="/map/to3D/庄子文化馆">庄子文化馆</a></li>
                        <li><a href="/map/to3D/人民公园">人民公园</a></li>
                        <li><a href="/map/to3D/森林公园">森林公园</a></li>
                        <li><a href="/map/to3D/欢乐谷水上乐园">欢乐谷</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">其他</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left" action="">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="搜目的地/攻略/酒店" id="ipt">
                </div>
                <button type="button" class="btn btn-default" id="btn" onclick="javascript:void(0);">搜索</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">关于商丘</a></li>
                <!--用户未登录-->
                <li class="dropdown" th:if="${userInfo} eq null">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">账户 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/user/toLogin">登录</a></li>
                        <li><a href="/user/toRegister">注册</a></li>
                        <li><a href="#">找回密码</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">修改账户信息</a></li>
                    </ul>
                </li>
                <!--用户已登陆-->
                <li class="dropdown" th:if="${userInfo} != null">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span th:text="${userInfo.nickname}">账户</span><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人主页</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">修改账户信息</a></li>
                        <li><a href="/user/logout">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<!--轮播图-->
<!--<div class="container-fluid" style="margin-top: 52px;">-->
    <!--<div class="row">-->
        <!--<div class="col-md-12 m">-->
            <!--<div class="">-->
                <!--<ul class="pgwSlider">-->
                    <!--&lt;!&ndash;遍历轮播图图片数据并展示 图片=>li &ndash;&gt;-->
                    <!--<li th:each="img:${bannerImage}">-->
                        <!--<a th:href="${img.href}" target="_blank"><img th:src="${img.src}" th:alt="${img.title}"></a>-->
                    <!--</li>-->
                <!--</ul>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
<div id="search" class="container-fluid" style="box-sizing: content-box;">
    <div class="center"></div>
    <input type="text" class="search" placeholder="请输入旅游景点/美食//攻略/酒店" id="ipt2">
    <img th:src="@{/img/search.png}" onclick="search();" class="button">
</div>

<div class="container">

    <!--推荐景点-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="jingdian">推荐景点</a></h2>
            <a href="/jingdian" class="hidden-xs gengduo">查看更多></a>
        </div>
    </div>

    <div class="row hr_plus"><div class="col-md-12"></div></div>

    <div class="row" style="margin-top: 15px" th:with="imgs=${jingImage}">
        <div class="col-md-3 hidden-xs one" style="padding-top: 25px"><img th:src="${imgs[0].src}" class="img-responsive img-rounded"><a th:href="${imgs[0].href}"><span class="touming"><h1 th:text="${imgs[0].title}">容州古城</h1>(AAAA级)</span></a></div>
        <div class="col-md-4">
            <div class="row">
                <div class="col-md-6 hidden-xs jingdan_img two"><img th:src="${imgs[1].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[1].href}"><span class="touming2"><h2 th:text="${imgs[1].title}">都桥山风景区</h2>(AAAA级)</span></a></div>
                <div class="col-md-6  hidden-xs jingdan_img three"><img th:src="${imgs[2].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[2].href}"><span class="touming2"><h1 th:text="${imgs[2].title}">黄绍竑故居</h1>(AAAA级)</span></a></div>
            </div>
            <div class="row four hidden-xs"><img th:src="${imgs[3].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[3].href}"><span class="touming3"><h1 th:title="${imgs[3].title}">绿碧山</h1>（AAA级景区）</span></a></div>

        </div>
        <div class="col-lg-5  hidden-xs">
            <div class="row five"><img th:src="${imgs[4].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[4].href}"><span class="touming2"><h1 th:title="${imgs[4].title}">容州·民国小镇</h1>（AAAA级景区）</span></a></div>
            <div class="row">
                <div class="col-md-6 hidden-xs jingdan_img six"><img th:src="${imgs[5].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[5].href}"><span class="touming2"><h3 th:text="${imgs[5].title}">都峤山·森林公园</h3>（AAA级景区）</span></a></div>
                <div class="col-md-6  hidden-xs jingdan_img seven"><img th:src="${imgs[6].src}" alt="" class="img-responsive img-rounded"><a th:href="${imgs[6].href}"><span class="touming2"><h3 th:text="${imgs[6].title}">天堂湖温泉度假山庄</h3>（AAA级景区）</span></a></div>
            </div>
        </div>
    </div>



    <!--游记攻略-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="gonglue">游记攻略</a></h2>
            <a href="/youji" class="hidden-xs gengduo">查看更多></a>
        </div>
    </div>
    <div class="row hr_plus"><div class="col-md-12"></div></div>

    <div id="toutiao" class="">
        <ul>
            <li class="list-unstyled" th:each="youji:${youjis}">
                <a th:href="${youji.images[0].href}"><img th:src="${youji.images[0].src}"></a>
                <h3>
                    <br>
                    ​<a th:href="${youji.images[0].href}" th:text="${youji.title}">美呆！大雨过后，摄影师...</a>
                    <p><span class="huixiao" th:text="${youji.time}">今天 12：00</span><span class="author">作者：<span th:text="${youji.user.nickname}">chif</span></span></p>
                </h3>
            </li>
            <li class="list-unstyled"></li>
        </ul>
    </div>

    <!--美食特产-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="meishi">美食特产</a></h2>
            <a href="/meishi" class="hidden-xs gengduo">查看更多></a>
        </div>
    </div>
    <div class="row hr_plus"><div class="col-md-12"></div></div>

    <div class="row hidden-xs" style="margin:30px;" th:with="meishis=${meishiImage}">
        <div class="col-md-5"><a th:href="${meishis[0].href}">
            <img th:src="${meishis[0].src}" alt="" style="width: 473px;height: 346px;">
            <!-- Contextual button for informational alert messages -->
            <button type="button" class="btn btn-info" style="margin: 5px" th:text="${meishis[0].title}">铁皮石斛</button></a>
        </div>
        <div class="col-md-5" style="float: right"><a th:href="${meishis[1].href}">
            <img th:src="${meishis[1].src}" alt="" style="width: 473px;height: 346px;">
            <!-- Contextual button for informational alert messages -->
            <button type="button" class="btn btn-info" style="margin: 5px" th:text="${meishis[1].title}">石锅鸡</button></a>
        </div>
    </div>


    <!--商丘文化-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="wenhua">商丘文化</a></h2>
            <a href="#" class="hidden-xs gengduo">查看更多></a>
        </div>
    </div>
    <div class="row hr_plus"><div class="col-md-12"></div></div>

    <div class="row">
        <p>&nbsp;&nbsp;商丘，简称“商”，河南省地级市，商丘介于东经114°49'-116°39'，北纬33°43'-34°52'之间，东西横跨168千米，南北纵贯128千米，东望安徽淮北、江苏徐州，西接河南开封，南襟河南周口、安徽亳州，北临山东菏泽、济宁。商丘市总面积约占河南省总面积的6.4%，区域面积10704平方千米 [74]  。截止2020年末，商丘市户籍人口总数1009万人。 [73]  [81]
            商丘市地貌按其成因和形态类型的特征，分为黄河冲积平原、淮河冲积平原、剥蚀残丘三大类型区，主要为黄河冲积平原区。 [2]  商丘市属暖温带大陆性季风气候。 [3]  商丘市属淮河流域，分属洪泽湖、涡河、南四湖三大水系。 [1]
            商丘市是全国性综合交通枢纽 [4]  ，商丘是中国历史文化名城、中华文明的发祥地之一，是商部族的起源和聚居地、商朝最早的建都地、商人商品商业的发源地、商文明的诞生地，有“华商之源”的美誉。 [5]  2020年，商丘市生产总值2925.33亿元。</p>
    </div>



    <!--精彩视频-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="shipin">精彩视频</a></h2>
            <a href="#" class="hidden-xs gengduo">查看更多></a>
        </div>
    </div>
    <div class="row hr_plus"><div class="col-md-12"></div></div>

    <!-- 16:9 aspect ratio -->
    <div class="embed-responsive embed-responsive-16by9" style="margin: 5px;">
        <video width="320" height="240" controls>
            <source th:src="@{/video/shipin.mp4}" type="video/mp4">
            <!--<source th:src="@{/video/shipin1.mp4}" type="video/mp4">-->
        </video>
    </div>


</div>
<!--百度地图API-->
<div class="container" style="">
    <!--出行地图-->
    <div class="row">
        <div class="col-md-12">
            <h2 style="float: left"><a name="tuji">出行地图</a></h2>
            <a href="/map/to3D/商丘古城" class="hidden-xs gengduo">3D地图></a>
        </div>
    </div>
    <div class="row hr_plus"><div class="col-md-12"></div></div>
    <div id="container" style="height: 800px;width:100%;margin-top: 10px;margin-bottom: 20px" class="col-md-10"></div>
    <script type="text/javascript">
        var map = new BMap.Map("container");
        // 创建地图实例
        var point = new BMap.Point(115.622113,34.381875);
        // 创建点坐标
        map.centerAndZoom(point, 15);
        // 初始化地图，设置中心点坐标和地图级别
        map.setCurrentCity("商丘市");          // 设置地图显 此项是必须设置的示的城市
        map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
        var stCtrl = new BMap.PanoramaControl(); //构造全景控件
        stCtrl.setOffset(new BMap.Size(20, 20));
        map.addControl(stCtrl);//添加全景控件
    </script>
</div>

<div th:insert="~{footer :: copy}"></div>
</body>
</html>
